﻿using System;
using System.Collections.Generic;

namespace JustTypeUI.Logic
{
    /// <summary>
    /// Contains information of parsed user command
    /// 
    /// Main Author: Han Yu
    /// </summary>
    public class Command
    {
        private string taskName;
        private string taskLocation;
        private string type;
        private DateTime taskDeadline;
        private List<string> taskKey;
        private List<int> taskIndex;

        /// <summary>
        /// initialize lists of taskKey and taskIndex
        /// </summary>
        public Command()
        {
            taskKey = new List<string> { };
            taskIndex = new List<int> { };
        }

        public string Type
        {
            get { return type; }
            set { type = value; }
        }
        //add a task command parameter
        public string TaskName
        {
            get { return taskName; }
            set { taskName = value; }
        }
        public string TaskLocation
        {
            get { return taskLocation; }
            set { taskLocation = value; }
        }
        public DateTime TaskDeadline
        {
            get { return taskDeadline; }
            set { taskDeadline = value; }
        }
        //delete a task command parameter/search and edit are the same
        public List<string> TaskKey
        {
            get { return taskKey; }
            set { taskKey = value; }
        }
        public List<int> TaskIndex
        {
            get { return taskIndex; }
            set { taskIndex = value; }
        }

    }
}
